import os
import time


o="c:\\windows\\system32\\shutdown -s"
print "Input the hours and minutes:"
h=input()
mt=input()
t=time.localtime()
y, m, d, h1, mt1=t[:5]
if(h<h1):
    print "The time has been pass"
elif(h==h1 and mt<mt1):
    print "The time has been pass"
hm=(y, m, d, h, mt)
print 'start countting'
while 1:
    time.sleep(60)
    ttime = (h-h1)*60+mt-mt1
    print '1 minutes passed,'+str(ttime)+' minutes left'
    t= time.localtime(time.time())
    a=t[:5]
    if(a==hm):
        print "Time is coming"
        os.system(o)
        break
    time.sleep(31)
